package com.kuzlak.cms.module.wms.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 入库待审核记录表
 * @TableName wms_master
 */

@Schema(description = "入库待审核记录表")
@Data
public class MasterVO{


    /**
     * 入库ID
     */
    @NotNull(message = "库房编号不能为空")
    @Schema(description = "库房编号")
    private Long infoId;

    /**
     * 入库数量
     */
    @NotNull(message = "入库数量不能为空")
    @Min(value = 1, message = "入库数量不能小于1")
    @Schema(description = "入库数量")
    private Integer quantity;

    /**
     * 入库合格数量
     */
    @NotNull(message = "入库合格数量不能为空")
    @Min(value = 0, message = "入库合格数量不能小于0")
    @Schema(description = "入库合格数量")
    private Integer qualifiedQuantity;

    /**
     * 入库不合格数量
     */

    @NotNull(message = "入库不合格数量不能为空")
    @Min(value = 0, message = "入库不合格数量不能小于0")
    @Schema(description = "入库不合格数量")
    private Integer unqualifiedQuantity;



    @Schema(description = "入库记录")
    private List<InBoundVO> inBounds;


}